from odoo import fields, models, api


class IrAttachmentInheritFromBasic(models.Model):
    _inherit = 'ir.attachment'
    _description = '适配预览小组件，新增预览URL'

    preview_url = fields.Char(string='预览URL')
